/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package components;

import components.shape.Shape;
import components.shape.ShapeFocusHandler;
import components.shape.ShapeMouseAction;
import components.shape.ShapeMouseMotionAction;
import java.awt.Cursor;

/**
 *
 * @author icdev
 */
public class Smear extends Shape {

    public Smear() {
        super();
        movable = true;
        this.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        this.setComponentPopupMenu(getShapeMenu());
        this.setInheritsPopupMenu(true);

        ShapeMouseAction mouseaction = new ShapeMouseAction();
        this.addMouseListener(mouseaction);
        ShapeMouseMotionAction mousemotionaction = new ShapeMouseMotionAction();
        this.addMouseMotionListener(mousemotionaction);
        ShapeFocusHandler focusH = new ShapeFocusHandler();
        this.addFocusListener(focusH);
        this.setFocusable(true);
    }
}
